package com.iplant.ams.service.basicenum.dms;


import com.iplant.base.po.enums.BaseEnum;

/**
 * 设备检修履历状态
 *
 * @author YouWang·Peng
 * 2023-8-31 15:18:56
 */
public enum DMSRepairRecordStatus implements BaseEnum {
    /**
     * 默认
     */
    Default(0, "默认"),

    /**
     * 保存
     */
    SAVE(1, "保存"),
    /**
     * 待检修
     */
    TO_ARRIVAL(2, "待到场"),
    /**
     * 待检修
     */
    TO_REPAIR(3, "待检修"),
    /**
     * 已检修
     */
    REPAIRED(4, "已检修");

    private int value;
    private String label;
    private String remark = "";

    DMSRepairRecordStatus(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static DMSRepairRecordStatus getEnumType(int val) {
        for (DMSRepairRecordStatus type : DMSRepairRecordStatus.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return Default;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
